package com.lqfan.autoAnswerQ.model.errorRecords;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author lqfan
 * @since 2020-04-09
 */
@TableName("importErrorRecords")
@Data

public class ImportErrorRecords extends Model<ImportErrorRecords> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    private String id;

    @TableField("userId")
    private String userId;

    @TableField("errorContent")
    private String errorContent;

    @TableField("createTime")
    private LocalDateTime createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ImportErrorRecords{" +
        "id=" + id +
        ", userId=" + userId +
        ", errorContent=" + errorContent +
        ", createTime=" + createTime +
        "}";
    }
}
